package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *  站点
 * </p>
 *
 * @author marisheng
 * @since 2019-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Station implements Serializable {

    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
    }

    private static final long serialVersionUID = 1L;

    @TableId(value = "station_id", type = IdType.AUTO)
    @NotNull(message = "站点Id不得为空")
    private Integer stationId;

    private  String pms;

    /**
     * 站点名称
     */
    private String station_name;

    /**
     * 站点账号，负责人手机号
     */
    @Pattern(regexp = "^((13[0-9])|(14[5,7,9])|(15[0-3,5-9])|(166)|(17[3,5,6,7,8])|(18[0-9])|(19[8,9]))\\d{8}$",message = "手机格式有误")
    private String station_phone;

    /**
     * 站点密码
     */
    private String station_password;

    /**
     * 站点所在区域
     */
    private Integer station_area;

    /**
     * 站点所在省份
     */
    private Integer station_province;

    /**
     * 站点所在城市
     */
    private Integer station_city;

    /**
     * 站点编号
     */
    private String station_bh;

    /**
     * 站点类型表外键
     */
    private Integer station_type;

    /**
     * 站点创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime station_create_time;

    /**
     * 最大终端数
     */
    private Integer station_maximum_number_of_terminals;

    /**
     * 当前终端数
     */
    private Integer staion_current_number_o_terminals;
    /**
     * 管理员表外键
     */
    private Integer station_admin_id;

    /**
     * 点钟宝ip
     */
    private Integer station_dzb_ip;

    /**
     * 系统升级表外键
     */
    private Integer station_system_update;

    /**
     * oss开关
     */
    private String station_oss;

    /**
     * 站点模式：租赁或买断
     */
    private String station_model;

    /**
     * 本地服务器地址
     */
    private String station_local_server_ip;

    /**
     * 授权
     */
    private String copy_right;

    /**
     * 地址表外键
     */
    private Integer address_id;

    /**
     * 钟点房使用总量
     */
    private Integer station_hour_room;

    /**
     *包天房间使用量
     */
    private Integer station_all_living_room;

    /**
     * 密钥余额
     */
    private Integer station_key_yue;



    private Integer station_region_id;
    /**
     * 省的中文
     */
    private String station_shen;
    /**
     * 区域的中文
     */
    private String station_quyu;

    /**
     * VPN地址
     */
    private String station_vpn;

    //站点锁定时提示语
    private  String station_locktip;

    //遥控器密码
    private  String yaokong_Pwd;


    private String dy_mainboard_id;   //主板序列号
    private int    dy_max_shouquan;   //最大授权数
    private long   dy_shouquan_daoqi; //授权到期时间(时间戳)
    private String dy_regist_code;    //电影注册码
    private int    dy_regist_type;    //0按终端数授权，1按站点数授权

}
